Skip to content

fix(descriptor): correct variable binding names in l: and u: fragment modifiers#454

Merged
ValuedMammal merged 1 commit intobitcoindevkit:masterfrom
tnull:2026-04-fix-dsl-modifier-typos
Apr 24, 2026
Merged

fix(descriptor): correct variable binding names in l: and u: fragment modifiers#454
ValuedMammal merged 1 commit intobitcoindevkit:masterfrom
tnull:2026-04-fix-dsl-modifier-typos

Conversation

@tnull
Copy link
Copy Markdown
Contributor

@tnull tnull commented Apr 23, 2026

Description

The l: arm bound a_networks_kinds but referenced a_network_kinds, and the u: arm bound a_networks but referenced a_network_kinds. Both closures silently captured the wrong variable from an outer scope, which could produce incorrect network kind filtering results.

Checklists

All Submissions:

Bugfixes:

  • This pull request breaks the existing API
  • I've added tests to reproduce the issue which are now passing
  • I'm linking the issue being fixed by this PR

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 23, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 80.21%. Comparing base (35a87f3) to head (5d158a4).
⚠️ Report is 2 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #454   +/-   ##
=======================================
  Coverage   80.21%   80.21%           
=======================================
  Files          24       24           
  Lines        5348     5348           
  Branches      242      242           
=======================================
  Hits         4290     4290           
  Misses        980      980           
  Partials       78       78           
Flag Coverage Δ
rust 80.21% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

…ment modifiers

The `l:` arm bound `a_networks_kinds` but referenced `a_network_kinds`,
and the `u:` arm bound `a_networks` but referenced `a_network_kinds`.
Both closures silently captured the wrong variable from an outer scope,
which could produce incorrect network kind filtering results.

Co-Authored-By: HAL 9000
Signed-off-by: Elias Rohrer <dev@tnull.de>
@ValuedMammal
Copy link
Copy Markdown
Collaborator

ValuedMammal commented Apr 24, 2026

Thank you HAL.

ACK 5d158a4; ran the tests locally

@ValuedMammal ValuedMammal force-pushed the 2026-04-fix-dsl-modifier-typos branch from fccb950 to 5d158a4 Compare April 24, 2026 16:03
@ValuedMammal ValuedMammal added this to the Wallet 3.1.0 milestone Apr 24, 2026
@ValuedMammal ValuedMammal added the bug Something isn't working label Apr 24, 2026
@ValuedMammal ValuedMammal merged commit 0217d85 into bitcoindevkit:master Apr 24, 2026
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants